Graphics.StringWidth Method
Returns the width of the text (based on the current font and font size) in pixels.
Syntax
Graphics.StringWidth Text
Text
String